<?php echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#" <?php if( defined('USING_FIREBUG_LITE') && USING_FIREBUG_LITE == TRUE ) echo 'debug="true"' ?> >
<head>
	<!-- Style FB -->
	<meta charset="utf-8" />
    
    <script type="text/javascript">
        if( top == window )
        {
         top.location.href = "<?php echo $this->socialUrl(array())?><?php echo !empty($_SERVER['QUERY_STRING'])?'?'.$_SERVER['QUERY_STRING']:''?>";
        }
   </script>

    <base href="<?php echo $this->serverUrl($this->baseUrl()) ?>/" />
	<!-- Style Common -->
	<?php echo $this->headLink();?>
	<link type="text/css" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css" rel="stylesheet" />
	<link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL . "/media/style/common.css?v=" . SKIN_VERSION?>" />
	<link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL . "/media/skin/main.css?v=" . SKIN_VERSION?>" />
    <link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL . "/media/skin/classic/layout.css?v=" . SKIN_VERSION?>" />
	<link rel="stylesheet" type="text/css" href="<?php echo REPOSITORY_URL . '/javascript/tipsy/tipsy.css?v=' . SKIN_VERSION?>" />
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
	<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
    <script type="text/javascript" src="<?php echo REPOSITORY_URL . '/javascript/tipsy/jquery.tipsy.js'?>" ></script>
	<script type="text/javascript" src="<?php echo STATIC_URL .  "/javascript/common.js"?>"></script>
    
    <script type="text/javascript" src="<?php echo STATIC_URL . "/javascript/jquery.simplemodal.js" ?>"></script>
    <link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL . "/media/style/preview_popup.css" ?>" />
    
<?php if( defined('USING_FIREBUG_LITE') && USING_FIREBUG_LITE == TRUE):?>
	<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"></script>
<?php endif ?>
	<?php echo $this->social->render('initHead') ?>
	<?php echo $this->headMeta() ?>
</head>
<body>
	<?php echo $this->social->render('initBody') ?>
<div class="sm_main screen_760x">
	<div class="sm_header">
		<div class="sm_container">
			<div class="sm_wiget sm_logo">
				<?php echo $this->partial('default/logo.phtml',array('social' => $this->social)) ?>
			</div>
            <!--
			<div class="sm_wiget sm_switch_side">
				<a target="_parent" href="<?php echo $this->socialUrl('/contest/manage/create-basic') ?>">
					<span><?php echo $this->translate('MANAGE_MENU_ITEM_CREATE') ?></span>
				</a>
			</div>
            -->
			<?php echo $this->placeholder('select_fanpages') ?>
		</div>
	</div>
	<div class="sm_body">
		<div class="sm_container">
            <?php echo $this->partial('default/menu_admin.phtml') ?>
			<?php echo $this->layout()->content ?>
		</div>
	</div>
	<div class="sm_footer">
		<div class="sm_container">
			<?php echo $this->translate('POWERED_BY') ?> <a href="http://media.younetco.com" target="_blank">YouNet Media</a>
		</div>
	</div>
</div> <!-- end .coupon -->
<?php echo $this->social->render('endBody') ?>
</body>
</html>